<?php
/**
 * 最新缺货登记文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	productrecord
 */
if (is_object($objWebInit)) {
	if(!isset($objproductrecord)){
		include_once(__WEB_ROOT."/productrecord/class/productrecord.class.php");
		include_once(__WEB_ROOT."/productrecord/config/var.inc.php");
		$objproductrecord = new productrecord();
		$objproductrecord->setDBG($arrGPdoDB);
		if(is_object($objWebInit->db)) $objproductrecord->db = $objWebInit->db;
		else $objproductrecord->db();
	}

	$arrTopproductrecord1 = array();
	$arrTopproductrecord1 = $objproductrecord->getInfoList("where type_id=1 and pass=1","  ORDER BY recommendflag DESC,submit_date DESC", 0, 5);
	unset($arrTopproductrecord1['COUNT_ROWS']);

	// print_r($arrTopproductrecord1);
	// 输出到模板
	$arrMOutput["smarty_assign"]['arrTopproductrecord1'] = $arrTopproductrecord1;
}
?>